//包含路由配置
import { Routes, BrowserRouter as Router, Route } from 'react-router-dom';
import './App.css';
import Chartdemo from './chartdemo';
import Chartdemo2 from './chartdemo2';
import Chartdemo3 from './chartdemo3';
import {Component} from "react";
import Expert from "./expert";
import React from 'react';

class App extends Component{
  render(){
    return(
      <Router>
        <div className="App">
          <Routes>
            <Route path="/" element={<Chartdemo/>} exact />
            <Route path='primary_search'>
              <Route path='primary' element={<Chartdemo/>}></Route>
              <Route path='advance' element={<Chartdemo2/>}></Route>
              <Route path='outcome' element={<Chartdemo3/>}></Route>
            </Route>
          </Routes>
          <Routes>
          <Route path='expert' element={<Expert/>}></Route>
          </Routes>
        </div>
      </Router>
    )
  }
}

export default App;




